package com.PuzGame.combinenumbers;

import java.math.BigInteger;
import java.util.ArrayList;

import android.graphics.Bitmap;
//
public class FriendsList extends ArrayList<FriendToChallengItem>
{

	private static final long serialVersionUId = 1L;


	private int IndexById(BigInteger Id) {
		FriendToChallengItem dummy = new FriendToChallengItem();
		dummy.setId(Id);
		int index = indexOf(dummy);
		return index;
	}
	
	public Bitmap GetFriendBitmap(BigInteger Id)
	{
		int index = IndexById(Id);
		return get(index).getBitmap();
	}

	public void SetFriendBitmap(BigInteger Id, Bitmap bmp)
	{
		int index = IndexById(Id);
		get(index).setBitmap(bmp);
	}
	
	
	public String GetFriendName(BigInteger Id)
	{
		int index = IndexById(Id);
		return get(index).GetName();
	}


	public String GetFriendImagePath(BigInteger Id) {
		int index = IndexById(Id);
		return get(index).getImagePath();
	}

	public void setStage(BigInteger Id, int difficultyLevel) {
		int index = IndexById(Id);
		get(index).setDifficultyLevel(difficultyLevel);
	}

}